<?php

$arr = ['小明','18','男'];

$arr = [['name'=>'小明','age'=>'18','sex'=>'男'],['name'=>'小红','age'=>'20','sex'=>'女']];
var_dump($arr);
// foreach ($arr as $k => $v) {
// 	var_dump($k,$v);
// }
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<table border="1">
		<tr>
			<td>姓名</td>
			<td>年龄</td>
			<td>性别</td>
			<td>操作</td>
		</tr>
		<?php foreach ($arr as $k => $v) { ?>
			<tr>
				<td><?php echo $v['name']; ?></td>
				<td><?php echo $v['age']; ?></td>
				<td><?php echo $v['sex']; ?></td>
				<td><a href="">删除</a></td>
			</tr>
		<?php } ?>
	</table>
</body>
</html>